package io;

import java.io.*;

public class FOSDemo {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("fos.dat");
        FileOutputStream fos = new FileOutputStream(file);
       // fos.write(100000);
        fos.write(-1);
        System.out.println("写入完毕");
        fos.close();

    }
}
